<template>
  <div class="shengmu7 base-background-img">
    <div class="y" @click="playFun(y)">
        <img src="~@/assets/youxiaoxianjie/shengmu/7/y.png">
    </div>
    <div class="w" @click="playFun(w)">
        <img src="~@/assets/youxiaoxianjie/shengmu/7/w.png">
    </div>
    <c-pdf @closePdf="closePdf" v-if="isshowpdf" :info="info" :infourl="pdfurl"></c-pdf>
  </div>
</template>

<script>
  export default {
    name: 'shengmu7',
    data () {
      return {
        isshowpdf: false,
        infourl: '',
        info: '',
        y: {
          url: 'static/youxiao/pdf/shengmu/y.pdf',
          data: []
        },
        w: {
          url: 'static/youxiao/pdf/shengmu/w.pdf',
          data: []
        }
      }
    },
    methods: {
      playFun: function (item) {
        console.log(item)
        this.isshowpdf = true
        this.pdfurl = item.url
        this.info = item.data
      },
      closePdf: function () {
        this.isshowpdf = false
      }
    }
  }
</script>

<style scoped>
.shengmu7 {
  background: url(~@/assets/youxiaoxianjie/shengmu/7/bg.png);
}
.shengmu7 > div {
  position: absolute; 
}
.y {
  top: 282px;
  left: 410px;
}
.w {
  top: 300px;
  left: 725px;
}
</style>
